MkCommandOutput
Node to display the terminal output of a command.¶
Example: Regular¶
| Name | Children | Inherits |
|---|---|---|
| MkTemplate mknodes.templatenodes.mktemplate Node representing a jinja template. |
graph TD
94396150857968["mkcommandoutput.MkCommandOutput"]
94396150980560["mktemplate.MkTemplate"]
94396150332256["mkcontainer.MkContainer"]
94396150626816["mknode.MkNode"]
94396150902384["node.Node"]
140181802719712["builtins.object"]
94396150980560 --> 94396150857968
94396150332256 --> 94396150980560
94396150626816 --> 94396150332256
94396150902384 --> 94396150626816
140181802719712 --> 94396150902384
/home/runner/work/mknodes/mknodes/mknodes/templatenodes/mkcommandoutput/metadata.toml
[metadata]
icon = "mdi:bash"
name = "MkCommandOutput"
[[resources.css]]
filename = "terminal.css"
[examples.regular]
condition = "{{ 'CI' | getenv }}"
title = "Regular"
jinja = """
{{ ["hatch", "--help"] | MkCommandOutput }}
"""
[output.html]
template = """
<div data-terminal>
<span data-ty="input">{{ node.call | join(" ") }}</span>
<span data-ty>{{ node.call | check_output(cwd=node.cwd) }}</span>
</div>
"""